import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from query import GetOrQuery

SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
        'postgresql://postgres:dowedo@localhost:5432/edatribe'
DEBUG =True
APP_ROOT = os.path.dirname(os.path.abspath(__file__))   # refers to application_top
APP_STATIC = os.path.join(APP_ROOT, 'static')

app=Flask(__name__)
app.config.from_object(__name__)
db=SQLAlchemy(app, query_class=GetOrQuery)